package com.shop.pojo;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

/**
 * Purchase entity. @author MyEclipse Persistence Tools
 */

public class Purchase implements java.io.Serializable
{

	// Fields

	private String idPurchase;
	private String purchaseno;
	private BigDecimal purchasetotal;
	private Set purchaselists = new HashSet(0);

	// Constructors

	/** default constructor */
	public Purchase()
	{
	}

	/** minimal constructor */
	public Purchase(String idPurchase, String purchaseno)
	{
		this.idPurchase = idPurchase;
		this.purchaseno = purchaseno;
	}

	/** full constructor */
	public Purchase(String idPurchase, String purchaseno,
			BigDecimal purchasetotal, Set purchaselists)
	{
		this.idPurchase = idPurchase;
		this.purchaseno = purchaseno;
		this.purchasetotal = purchasetotal;
		this.purchaselists = purchaselists;
	}

	// Property accessors

	public String getIdPurchase()
	{
		return this.idPurchase;
	}

	public void setIdPurchase(String idPurchase)
	{
		this.idPurchase = idPurchase;
	}

	public String getPurchaseno()
	{
		return this.purchaseno;
	}

	public void setPurchaseno(String purchaseno)
	{
		this.purchaseno = purchaseno;
	}

	public BigDecimal getPurchasetotal()
	{
		return this.purchasetotal;
	}

	public void setPurchasetotal(BigDecimal purchasetotal)
	{
		this.purchasetotal = purchasetotal;
	}

	public Set getPurchaselists()
	{
		return this.purchaselists;
	}

	public void setPurchaselists(Set purchaselists)
	{
		this.purchaselists = purchaselists;
	}

}